package com.jzo2o.customer.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;

/**
 * <p>
 * 服务人员认证审核表 服务类
 * </p>
 *
 * @author itlxc
 * @since 2024-10-14
 */
public interface IWorkerCertificationAuditService extends IService<WorkerCertificationAudit> {

    /**
     * 服务端提交认证申请
     * @param dto
     */
    void submit(WorkerCertificationAuditAddReqDTO dto);

    /**
     * 查询最新的驳回原因
     * @return
     */
    String getRejectReason();

    /**
     * 审核服务人员认证分页查询
     * @param dto
     * @return
     */
    PageResult<WorkerCertificationAudit> pageQuery(WorkerCertificationAuditPageQueryReqDTO dto);

    /**
     * 审核服务人员认证信息
     * @param id
     * @param certificationStatus
     * @param rejectReason
     */
    void audit(Long id, Integer certificationStatus, String rejectReason);
}
